package com.hundsun.cprs.yyt.action;

import java.util.concurrent.Executor;
import java.util.concurrent.ThreadPoolExecutor;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.hundsun.cprs.yyt.service.match.service.TradeMatchInnerService;

/**
 * 
 * @author fish
 * 
 */
@Controller
public class ExecutorAction {
	
	@Resource(name="asyncFundExecutor")
	private Executor asyncFundExecutor;
	
	@Autowired
	private TradeMatchInnerService tradeMatchInnerService;

	@RequestMapping("/executor/status.htm")
	public void status(ModelMap model) {
		model.put("asyncMatchExecutor", tradeMatchInnerService.getAsyncMatchExecutor());
		model.put("asyncFundExecutor", asyncFundExecutor);
	}
}
